package model;

/**
 * @author samuel
 *
 */
public class Distance {

	int milimeters;
	
	/**
	 * @param milimeters
	 */
	private Distance(int milimeters) {
		this.milimeters = milimeters;
	}

	/**
	 * @param meter
	 * @return
	 */
	public static Distance makeDistanceFromMeter(int meter)
	{
		return new Distance(meter*1000);
	}
	
	/**
	 * @return
	 */
	public int getDistanceInMeter()
	{
		return milimeters/1000;
	}
}
